/**
 * Copyright &copy; 2012-2017 <a href="http://minglisoft.cn">HongHu</a> All rights reserved.
 */
package com.honghu.cloud.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.honghu.cloud.dto.ActivityDto;


/**
 * 活动feign调用类
 * @author Administrator
 *
 */
@FeignClient(name="honghu-activity-service" ,path="activity")
public interface ActivityFeignClient{

	/**
	 * 根据活动id查询活动，feign调用
	 * @param id
	 * @return
	 */
	@RequestMapping(value = "/apiForFeign/selectByPrimaryKey2", method = RequestMethod.GET)
	public ActivityDto selectByPrimaryKey2(@RequestParam("id") Long id);
	
	/**
	 * 根据活动id查询活动，feign调用
	 * @param id
	 * @return
	 */
	@RequestMapping(value = "/apiForFeign/selectByPrimaryKey", method = RequestMethod.GET)
	public ActivityDto selectByPrimaryKey(@RequestParam("id") Long id);
	
}